﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Decoration.Models.Models
{
    /// <summary>
    /// 业务类型
    /// </summary>
    public class BusinessInfo
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        /// <summary>
        /// 业务类型名称
        /// </summary>
        [MaxLength(50)]
        public string BusinessName { get; set; } = null!;

        /// <summary>
        /// 业务类型详情
        /// </summary>
        [MaxLength(500)]
        public string? BusinessDesc { get; set; }

        public DateTime CreateTime { get; set; } = DateTime.Now;

        public int Status { get; set; } = 1;

        public virtual ICollection<ProcedureInfo> ProcedureInfos { get; set; } = new List<ProcedureInfo>();
    }
}
